import requests


headers = {
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
                  "AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.106 Safari/537.36"
}

comic_id = []

url = "https://www.manhuatai.com/api/getRankDataForWeb/?product_id=2&productname=mht&platformname=pc&isalldata=0&time_type=total&sort_type=all&rank_type=heat&page=1&pageSize=33"
response = requests.get(url=url, headers=headers)
response_data = response.json()["data"]["list"]
# print(response_data)
for data in response_data:
    comic_id.append(data.get("comic_id"))

# print(comic_id)
# cartoon
